import { http } from '@/http/http'

export interface mineTS {
  code: number
  message: string

  id: string
  avatar: string
  mobile: string
  account: string
  likeNumber: number
  collectionNumber: number
  score: number
  couponNumber: number
  consultationInfo: [
    {
      id: string
      name: string
      avatar: string
      depName: string
      positionalTitles: string
      hospitalName: string
      gradeName: string
      orderId: string
    },
  ]
  orderInfo: {
    paidNumber: number
    receivedNumber: number
    shippedNumber: number
    finishedNumber: number
  }

}

export function getMine() {
  return http.get<mineTS>('/patient/myUser')
}
